<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{{collection.title}}</title>
    <link rel="stylesheet" type="text/css" href="{{static_files}}/style.css">
</head>
<body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td class="border"></td>
        <td valign="top">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr><td class="title">{{collection.title}}</td></tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td valign="top" width="20"><img src="{{static_files}}/temp.gif" height="1" width="20"></td>
                    <td class="content" valign="top" width="100%"><br>
                        <table class="b_table" border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr><td class="b_table" width="100%"><img src="{{static_files}}/temp.gif" height="3" width="1"></td></tr>
                            <tr>
                                <td>
                                    <table border="0" cellspacing="1" width="100%">
                                        <tr align="center" bgcolor="white">
                                            <td width="10%">{{titles.issue_date}}</td>
                                            <td width="15%">{{titles.catalognum1}}</td>
                                            <td width="15%">{{titles.denomination}}</td>
                                            <td width="30%">{{titles.title}}</td>
                                            <td>{{titles.cancellation}}</td>
                                            <td>{{titles.status}}</td>
                                        </tr>
                                        {% for group in records|groupby('series') %}
                                        <tr class="group"><td colspan="6"><br>{% if group.grouper %}{{titles.series}}: {{ group.grouper }}{% endif %}</td></tr>
                                            {% for record in group.list|sort(attribute='catalognum1')|sort(attribute='issue_date_raw') %}
                                            <tr bgcolor="#ffffff">
                                                <td align="center">{% if record.issue_date %}{{record.issue_date}}{% else %}{{record.emission_period}}{% endif %}</td>
                                                <td align="center">{{record.catalognum1}}</td>
                                                <td>&nbsp; <font size="2">{{record.denomination}}</font></td>
                                                <td class="menu">
                                                    <a href="{% if single_file %}#id_{{record.id}}{% else %}stamp_{{record.id}}.htm{% endif %}">{{record.title}}</a>
                                                </td>
                                                <td>{{record.cancellation}}</td>
                                                <td>{{record.status}}</td>
                                            </tr>
                                            {% endfor %}
                                        {% endfor %}
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <br>
                    </td>
                    <td valign="top" width="15"><img src="{{static_files}}/temp.gif" height="1" width="15"></td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr><td height="6"><br></td></tr>
                <tr><td align="center">Generated by Philatelist {{date}}<br></td></tr>
                <tr><td height="6"><br></td></tr>
                <tr><td bgcolor="#ffcc00" height="6"><img src="{{static_files}}/temp.gif" height="6" width="1"></td></tr>
            </table>
        </td>
        <td class="border"><img src="{{static_files}}/temp.gif" height="1" width="15"></td>
    </tr>
</table>
{% if single_file %}
    {% for record in records %}
        <p class="breakhere"><a name="id_{{record.id}}"></a></p>
        {% include 'stamp_body.htm' %}
    {% endfor %}
{% endif %}
</body>
</html>
